import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'


//智能教学
import aLearn from '../components/learn/aLearn'

//全局案例
import allCase from '../components/all/allCase'

//行业分析

import hotVideo from '../components/Analysis/hotVideo'
import hotShop from '../components/Analysis/hotShop'
import cateList from '../components/Analysis/cateList'
import brandList from '../components/Analysis/brandList'

//流量洞察
import hotMan from '../components/flowSee/hotMan'
import windList from '../components/flowSee/windList'
import hotSeeing from '../components/flowSee/hotSeeing'
import goodsSquare from '../components/flowSee/goodsSquare'

//爆品海选
import hcateList from '../components/hot/cateList'
import getGoods from '../components/hot/getGoods'
import hotGoods from '../components/hot/hotGoods'
import seeGoods from '../components/hot/seeGoods'

//效果分析
import ehotMan from '../components/effect/hotMan'
import egetGoods from '../components/effect/getGoods'
import brandSee from '../components/effect/brandSee'
//素材视频工具
import sPeack from '../components/tools/sPeack'
import tRio from '../components/tools/tRio'
import tUser from '../components/tools/tUser'
import videoFoot from '../components/tools/videoFoot'
import toolVideo from '../components/tools/toolVideo'
Vue.use(VueRouter)

// 解决路由重复问题
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
const routes = [{
    path: '/',
    name: '',
    component: HomeView,
    children: [{
        path: '/',
        name: '',
        component: aLearn,
      },{
        path: '/aLearn',
        name: '智能教学',
        component: aLearn,
      },{
        path: '/allCase',
        name: '全域案例',
        component: allCase,
      },{
        path: '/hotVideo',
        name: '热门视频排行榜',
        component: hotVideo,
      },{
        path: '/hotShop',
        name: '热门店铺排行榜',
        component: hotShop,
      },{
        path: '/cateList',
        name: '类目排行榜',
        component: cateList,
      },{
        path: '/brandList',
        name: '品牌榜单',
        component: brandList,
      },{
        path: '/hotMan',
        name: '热门主播榜',
        component: hotMan,
      },{
        path: '/windList',
        name: '直播风车榜',
        component: windList,
      },{
        path: '/hotSeeing',
        name: '热门直播间',
        component: hotSeeing,
      },{
        path: '/goodsSquare',
        name: '带货直播广场',
        component: goodsSquare,
      },
      {
        path: '/hcateList',
        name: '直播类目大盘',
        component: hcateList,
      },
      {
        path: '/getGoods',
        name: '带货视频优选',
        component: getGoods,
      },
      {
        path: '/hotGoods',
        name: '热门商品广场',
        component: hotGoods,
      },
      {
        path: '/seeGoods',
        name: '直播商品爆款',
        component: seeGoods,
      },
      {
        path: '/ehotMan',
        name: '达人直播分析',
        component: ehotMan,
      },
      {
        path: '/egetGoods',
        name: '带货商品分析',
        component: egetGoods,
      },
      {
        path: '/brandSee',
        name: '品牌直播间分析',
        component: brandSee,
      },
      {
        path: '/sPeack',
        name: '话术推荐',
        component: sPeack,
      },
      {
        path: '/tRio',
        name: 'ROI计算器',
        component: tRio,
      },
      {
        path: '/tUser',
        name: '对比账号',
        component: tUser,
      },
      {
        path: '/videoFoot',
        name: '视频素材脚本',
        component: videoFoot,
      },
      {
        path: '/toolVideo',
        name: '引流视频素材',
        component: toolVideo,
      },



    ]

  },



]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})
//
document.title = '新媒体直播数据化运营实训软件'
export default router